Date Object

1)Date:
By default, JavaScript will use the browser's time zone and display a date as a full text string:
syntax: var a=new Date();


1)Date object:
new Date(year, month, ...) creates a date object with a specified date and time.
syntax: var a=new Date(year,month,day,hours,minutes,seconds,ms);